/** 
 * 
 */

/**
 * @author 
 * Yannic Remmet			196983
 * Tobias Trabelsi			197112
 * Anna-Katharina Wickert	197122
 */
public class Test {
	public static void main(String[] args){
		try {
			TreeNode<Integer> root = new TreeNode<Integer>(7);
			SearchTree<Integer> test = new SearchTree<Integer>(root);

			System.out.println("test.insert(null)  (false) : " +  test.insert(null));
			System.out.println("test.insert(3) (true): " + test.insert(3));
			System.out.println("test.insert(2) (true): " + test.insert(2));
			System.out.println("test.insert(3) (false): " + test.insert(3));
			System.out.println("test.insert(4); (true): " + test.insert(4));
			System.out.println("test.insert(9); (true): " + test.insert(9));
			System.out.println("test.insert(10); (true): " + 	test.insert(10));
			System.out.println("test.insert(16); (true): " + test.insert(16));
			System.out.println("test.insert(15); (true): " + test.insert(15)); 
		
			  
			  
			
			System.out.println("postOrder() ( 15 16 10 9 4 2 3 7  ) "+ test.postOrder());   
			System.out.println("leverOder (7 9 3 10 4 2 16 15 ) " + test.levelOrder());
			System.out.println("preOrder (7 9 10 16 15 3 4 2 ) " + test.preOrder());
		}
		catch (NullPointerException a) {
			System.err.println("Message: "  + a.getMessage() + " Cause: " + a.getCause() + a.getStackTrace()+" NullPointer ");
		}
	}
}
